//
//  newsCell.m
//  项目一
//
//  Created by nick on 15/7/21.
//  Copyright (c) 2015年 nick. All rights reserved.
//

#import "newsCell.h"
#import "UIImageView+WebCache.h"
@implementation newsCell
//@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
//@property (weak, nonatomic) IBOutlet UILabel *titleLable;
//@property (weak, nonatomic) IBOutlet UIView *imageAndTextView;
//@property (nonatomic)newsModal *modal;

- (void)awakeFromNib {
    // Initialization code
}
- (void)setModal:(newsModal *)modal{
    _modal = modal;
    [self setNeedsLayout];
    
}

-(void)layoutSubviews{
    [super layoutSubviews];
    self.titleLable.text = _modal.title;
    self.titleLable.numberOfLines = 0;
    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:_modal.image]];
    self.summaryText.text = _modal.summary;

    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
